import request from '@/router/axios';
// 车队车辆

export const getPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillteamcar/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const save = (form) => {
  return request({
    url: '/api/uic-system/fillteamcar/save',
    method: 'post',
    data: {
      ...form,
    }
  })
}

export const remove = (id) => {
  return request({
    url: '/api/uic-system/fillteamcar/remove',
    method: 'post',
    params: {
      ids: id,
    }
  })
}

export const unbindCard = (id ,cardId) => {
  return request({
    url: '/api/uic-system/fillteamcar/unbindCard',
    method: 'post',
    data: {
      id: id,
      cardId: cardId,
    }
  })
}
